<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"
    />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Demo</title>
    <link
      rel="stylesheet"
      href="https://cdn.bootcss.com/normalize/7.0.0/normalize.min.css"
    />
    <style>
      body {
        font-family: 'STHeiti', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
        font-size: 0.32rem;
        line-height: 1.5;
      }

      body * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }

      .wrapper {
        margin: 0 auto;
      }

      .wrapper--max-width {
        /* 推荐设置为maxLayoutWidth */
        max-width: 750px;
      }

      .wrapper--no-padding {
        padding-left: 0;
        padding-right: 0;
      }

      .header {
        height: 0.88rem;
        background-color: #f7f7f7;
        border-bottom: 1px solid;
      }

      .title {
        font-weight: normal;
        font-size: 0.4rem;
        line-height: 0.88rem;
        text-align: center;
      }

      .example__img {
        display: block;
        width: 7.5rem;
        height: 4rem;
        margin: 0 auto;
      }

      .example__p {
        font-size: 0.32rem;
      }

      .example__p--s {
        font-size: 0.28rem;
      }

      .example__p--l {
        font-size: 0.42rem;
      }

      .example__p--xl {
        font-size: 0.46rem;
      }
    </style>
    <script src="https://cdn.jsdelivr.net/npm/@yeung2017/rem-layout@1.0.3/dist/RemLayout.iife.js"></script>
    <!-- <script src="../dist/RemLayout.iife.js"></script> -->
    <script>
      new RemLayout(750, {
        maxLayoutWidth: 750,
        remUnit: 100,
      });
    </script>
  </head>

  <body>
    <div class="header">
      <h1 class="title">标题</h1>
    </div>
    <div class="main">
      <div class="wrapper wrapper--max-width">
        <div class="example">
          <img
            class="example__img"
            src="http://iph.href.lu/750x400?text=750*400"
            alt=""
            srcset=""
          />
          <p class="example__p">
            1234567890 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
            一段内容
          </p>
          <p class="example__p--s">
            1234567890 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
            一段内容
          </p>
          <p class="example__p--l">
            1234567890 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
            一段内容
          </p>
          <p class="example__p--xl">
            1234567890 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
            一段内容
          </p>
          <img
            class="example__img"
            src="http://iph.href.lu/750x400?text=750*400"
            alt=""
            srcset=""
          />
          <p class="example__p">
            1234567890 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
            一段内容
          </p>
          <p class="example__p--s">
            1234567890 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
            一段内容
          </p>
          <p class="example__p--l">
            1234567890 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
            一段内容
          </p>
          <p class="example__p--xl">
            1234567890 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz
            一段内容
          </p>
        </div>
      </div>
    </div>
  </body>
</html>
